home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / JZOPNWND.C < prev    next >
Text File  |  1989-04-09  |  651b  |  26 lines

  1. extern THEADER g_header;
  2. extern int _attr;
  3. TWINDOW *jzopnwnd(fwindnum,frow,fcol,flength,fwidth,ffore,fback)
  4. int fwindnum , frow , fcol , flength , fwidth , ffore , fback;
  5. {
  6.   TWINDOW *pwindow;
  7.  
  8.   /* allocate window and save previous contents */
  9.   pwindow = jzappend(&g_header,_attr,frow,fcol,
  10.              frow+fwidth-1,fcol+flength-1,fwindnum);
  11.  
  12.   if ( pwindow ) {
  13.     color(ffore,fback);
  14.     /* set global color constants */
  15.     /* set global window constants */
  16.     window(frow+1,fcol+1,frow+fwidth-2,fcol+flength-2);
  17.     jzclrscr();
  18.     jzdrwbox(frow,fcol,flength,fwidth,_attr);
  19.     return(pwindow);
  20.   }
  21.   else return(0);
  22. }
  23.  
  24.  
  25.  
  26.